<?php
class Application_Form_ReportarError extends Zend_Form{

	public function init(){
		$this->setName('reportarError');

		$nombre= new Zend_Form_Element_Text('nombre');
		$nombre->setLabel('Nombre/s:')
		->setRequired(true)
		->addFilter('StripTags')
		->addFilter('StringTrim');

		$apellido= new Zend_Form_Element_Text('apellido');
		$apellido->setLabel('Apellido/s:')
		->setRequired(true)
		->addFilter('StripTags')
		->addFilter('StringTrim');

		$email= new Zend_Form_Element_Text('email');
		$email->setLabel('E-Mail:');
		
		$comentario= new Zend_Form_Element_Text('comentario');
		$comentario->setLabel('Comentario/s:')
		->setRequired(true)
		->addFilter('StripTags')
		->addFilter('StringTrim');	

		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton');
		
		$this->addElements(array($nombre, $apellido, $email, $comentario, $submit));
	}
}